package com.kgd.news.wxpay.constant;

/**
 * Created by Hyman on 2017/2/27.
 */
public class Constant {
    public static final String DOMAIN = "https://qqxy.b3ad.cn";
    public static final String URL_NOTIFY = Constant.DOMAIN + "/zfb/api/payNotify";
    //    public static final String DOMAIN = "127.0.0.1:8080";
//    public static final String URL_NOTIFY = Constant.DOMAIN + "/api/payNotify";
//    beishanguanggaoyouxiangongsi2015
//    北山商户号的密钥
    public static final String APP_KEY = "beishanguanggaoyouxiangongsi2015";
    public static final String DESC = "祝福邦-余额提现";  //支付通知信息
    public static final String HB_DESC = "祝福邦-红包付款";  //
    public static final String MCH_ID = "1480434232";  //商户号
    public static final String URL_ORDER_QUERY = "https://api.mch.weixin.qq.com/pay/orderquery";
    public static final String URL_UNIFIED_ORDER = "https://api.mch.weixin.qq.com/pay/unifiedorder";
    public static final String URL_ORDER_ClOSE = "https://api.mch.weixin.qq.com/pay/closeorder";

    public static final String TIME_FORMAT = "yyyyMMddHHmmss";

    public static final int TIME_EXPIRE = 2;  //单位是day

    //代码中不允许出现自然数
    // 提现表状态 WITHDRAW  state（ 1，成功，2,失败，3正在提现,4余额不足提现）
    public static final int WITHDRAW_SUCCESS = 1;  //
    public static final int WITHDRAW_FAIL = 2;  //
    public static final int WITHDRAW_DOING = 3;  //
    public static final int WITHDRAW_FAIL_NOFUNDS = 4;  //
    //    是发送的还是领取的
    public static final int SPLIT_HB_SEND = 1;  //
    public static final int SPLIT_HB_GET = 2;  //
    public static final int SPLIT_HB_ALL = 3;  //SEND和GET所有的都包括
    //    生成的贺卡是否带红包
    public static final int GREETCARD_HAS_HB = 1;  //有红包
    public static final int GREETCARD_NO_HB = 2;  //无红包

    //拆分的红包的状态值 state状态0表示未用，1表示已用，2表示过期、领取人身分receiverid
    public static final int SPLIT_HB_STATE_NEW = 0;  //单位是day
    public static final int SPLIT_HB_STATE_OPENED = 1;  //单位是day
    public static final int SPLIT_HB_STATE_OUTOFTIME = 2;  //过期已结算

    //    festivaltype祝福语表的节日类型，比如

    //订单状态state[充值成功1-充值失败3，正在充值2，4表示]
    public static final int ORDER_STATE_SUCCESS = 1;
    public static final int ORDER_STATE_FAILURE = 2;
    public static final int ORDER_STATE_DOING = 3;
    public static final int ORDER_STATE_UNKNOW = 4;

    //  贺卡 urltype  1文字（传统贺卡），2音频，3视频4图片（趣味贺卡）
    public static final int HK_URLTYPE_WORD = 1;
    public static final int HK_URLTYPE_AUDIO = 2;
    public static final int HK_URLTYPE_VIDEO = 3;
    public static final int HK_URLTYPE_PIC = 4;
    //    红包过期返还时间（单位：小时）
    public static final long SPLIT_HB_TIME_EXPIRE = 24;
    //    节日类型
    public static final int FESTIVAL_TYPE_SPRING = 70;//春节
    public static final int FESTIVAL_TYPE_SPRING_LANTERN = 71;//元宵
    public static final int FESTIVAL_TYPE_BIRTHDAY = 72;//生日
    public static final int FESTIVAL_TYPE_VALENTINE = 73;//情人
    public static final int FESTIVAL_TYPE_DOUBLE_SEVENTH = 74;//七夕
    public static final int FESTIVAL_TYPE_WOMEN = 75;//妇女
    public static final int FESTIVAL_TYPE_MOTHER = 76;//母亲
    public static final int FESTIVAL_TYPE_FATHER = 77;//父亲
    public static final int FESTIVAL_TYPE_DRAGONBOAT = 78;//端午
    public static final int FESTIVAL_TYPE_MID_AUTUMN = 79;//中秋
    public static final int FESTIVAL_TYPE_ONE_ONE = 80;//单身
    public static final int FESTIVAL_TYPE_THANKSGIVING = 81;//感恩
    public static final int FESTIVAL_TYPE_WEDDING = 82;//结婚

    //  账户明细表收支表状态1收入2支出
    public static final int USER_CASHTYPE_INCOME = 1;
    public static final int USER_CASHTYPE_EXPEND = 2;

    //  待自动提取金额   1成功，2待提现，3提现超过7天未成功
    public static final int AUTO_WITHDRAW_SUCCESS = 1;
    public static final int AUTO_WITHDRAW_FAIL = 2;
    public static final int AUTO_WITHDRAW_FAIL_OUT7DAY = 3;

    public static final int WITHDRAWCASHWHERSYSTEMERROR_SUCCESS = 1;
    public static final int WITHDRAWCASHWHERSYSTEMERROR_FAIL = 2;
    public static final int WITHDRAWCASHWHERSYSTEMERROR_SYSTEMERROR = 3;

    //  withdraw_systemerror查询订单数据库结果状态
    public static final int WITHDRAW_SYSTEMERROR_QUERY_SYSTEMERROR = 0;
    public static final int WITHDRAW_SYSTEMERROR_QUERY_SUCCESS = 1;
    public static final int WITHDRAW_SYSTEMERROR_QUERY_FAIL = 2;


}
